export default {
	namespaced: true,
	state: {
		houseTitle: uni.getStorageSync('point') || '',
		roomNumber: uni.getStorageSync('point') + uni.getStorageSync('building') || '',
		roomInfo: uni.getStorageSync('point') + uni.getStorageSync('building') + uni.getStorageSync('room') || ''
	},
	getters: {},
	mutations: {
		setHouseTitle(state, payload) {
			state.houseTitle = payload
			uni.setStorageSync('point', state.houseTitle)
		},
		setRoomNumber(state, payload) {
			state.roomNumber = state.houseTitle + payload + '号楼'
			uni.setStorageSync('building', payload + '号楼')
		},
		setRoomInfo(state, payload) {
			state.roomInfo = state.roomNumber + payload
			uni.setStorageSync('room', payload)
		}
	},
	actions: {

	},
}
